package org.example.spring.repository.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT;
import static com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE;

/**
 * LuoYu
 * 2022/12/12 18:55
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("orm_department")
public class Department {
    /**
     * 主键
     */
    private Long id;

    /**
     * 部门名称
     */
    private String name;


    /**
     * 上级部门id
     */
    private Long superior;


    /**
     * 所属层级
     */
    private Integer levels;


    /**
     * 排序
     */
    private Integer orderNo;




}
